using Controls;
using Events;
using PrimeTween;
using UnityEngine;

namespace Globals.States
{
    public class WaitingForStartState : MonoBehaviour, IState
    {
        [SerializeField] private PlayerController playerController;
        

        public void Enter()
        {
            playerController.StartGamePerformed += PlayerController_StartGamePerformed;
        }

        public void OnUpdate()
        {
        }

        public void Exit()
        {
            playerController.StartGamePerformed -= PlayerController_StartGamePerformed;
        }
        
        private void PlayerController_StartGamePerformed()
        {
            GameState.Instance.SwitchState(typeof(TutorialState));
        }
    }
}
